import request from '@/utils/request'

const serviceApi = {
  ServiceLogList: '/admin/serviceLog/List', // 客服记录

  ServiceSettingGet: '/admin/serviceSetting/get', // 获取设置
  ServiceSettingUpdate: '/admin/serviceSetting/update', // 获取设置



  ServiceProductList: '/admin/serviceProduct/list', // 列表
  ServiceProductUpdate: '/admin/serviceProduct/update', // 编辑
  ServiceProductAdd: '/admin/serviceProduct/add', // 新增


  ServiceLog: '/service/serviceLog/list',

}


export function serviceLog(data) {
  return request({
    url: serviceApi.ServiceLog,
    method: 'post',
    data
  })
}


export function serviceLogList(parameter) {
  return request({
    url: serviceApi.ServiceLogList,
    method: 'post',
    data: parameter,
  })
}

export function getServiceSetting(parameter) {
  return request({
    url: serviceApi.ServiceSettingGet,
    method: 'post',
    data: parameter,
  })
}

export function serviceSettingUpdate(parameter) {
  return request({
    url: serviceApi.ServiceSettingUpdate,
    method: 'post',
    data: parameter,
  })
}

export function serviceProductList(parameter) {
  return request({
    url: serviceApi.ServiceProductList,
    method: 'post',
    data: parameter,
  })
}
export function serviceProductUpdate(parameter) {
  return request({
    url: serviceApi.ServiceProductUpdate,
    method: 'post',
    data: parameter,
  })
}
export function serviceProductAdd(parameter) {
  return request({
    url: serviceApi.ServiceProductAdd,
    method: 'post',
    data: parameter,
  })
}